<?php

use yii\db\Schema;
use yii\db\Migration;

class m160121_072316_update_condition_frequency_type_id extends Migration
{
    public function up()
    {
        $this->alterColumn('{{%condition_frequency}}', 'frequency_type_id', "int(8) unsigned NOT NULL COMMENT '1 无限制, 2 总上限, 3 每小时，4 每天, 5 每周'");
    }

    public function down()
    {
        return true;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
